<? $page_title='供应商管理' ?>
<? include "FASHION/page_header.phtml" ?>

<table class="list" cellpadding=0 cellspacing=0>
<tr class="nobg">
	<th>供应商名称</th>
	<th>电话</th>
	<th>联系人</th>
	<th>地址</th>
	<th width="20%">备注</th>
	<th>操作</th>
</tr>

<{if $suppliers}>
<{foreach item=supplier from=$suppliers}>
<TR>
	<TD><{$supplier.name}></TD>
	<TD><{$supplier.phone}></TD>
	<TD><{$supplier.linkman}></TD>
	<TD class="text"><{$supplier.address}></TD>
	<TD class="text"><{$supplier.remark}></TD>
	<TD width="70">
<!--		<a href="<{url('supplier-view/id/'.$supplier.id)}>">查看</a>-->
		<a href="<{url('supplier-modify/id/'.$supplier.id)}>">修改</a>
                <{if !in_array($supplier.id,$ids)}> | 
                <a href="javascript:;" onclick="goconfirmurl('确定要删除此供应商的信息吗？','<{url("supplier-delete/id/".$supplier.id)}>')">删除</a>
                <{/if}>
	</TD>
</TR>
<{/foreach}>
<{/if}>
</table>

<? Html::pager($pager) ?>
<div class="warn"><p>不能删除已经使用的供应商数据！</p></div>
<input type="button" value="添加供应商" onclick="g2('<?url('supplier-add')?>')" />
<script type="text/javascript">
    function goconfirmurl(msg,url)
    {
        if(confirm(msg))
        {
            location.href = url;
        }
    }
</script>
<? include "FASHION/page_footer.phtml" ?>
